<template>
	<view class="" >
	<view class="title">{{info.firstName}}{{info.lastName}}</view>
	<view class="time">{{info.createTime}}</view>
	<view class="rich">
			<text>族谱新增录入{{info.status==0?'审核中':info.status==1?'已通过':'未通过'}}</text>
			<text v-if="info.status==2">({{info.memo}})</text>
	</view>
	<view class="btn" v-if="info.status==2">
		<button class="submit" @click="submit">重新提交</button>
	</view>
</view>
</template>

<script setup>
	import {
		ref,onMounted
	} from 'vue';
	
	let info=ref(null)
	onMounted(()=>{
		 info.value= uni.getStorageSync('luruinfo')
		 // uni.removeStorageSync('info')
	})
	function submit(){
		uni.navigateTo({
			url:"/pages/mine/addChild?type=1"
		})
	
	}
</script>

<style lang="scss" scoped>
	.rich{
		box-sizing: border-box;padding: 30rpx;
		text{
			font-weight: 500;
			font-size: 26rpx;
			color: #000000;
			line-height: 40rpx;
		}
	}
	.title{
		font-family: PingFang-SC, PingFang-SC;
		font-weight: 500;
		font-size: 30rpx;
		color: #000000;
		width: 100%;
		display: flex;
		justify-content: center;
		padding-top: 30rpx;
	}
	.time{
		width: 100%;
		display: flex;
		justify-content: center;
		font-family: PingFang-SC, PingFang-SC;
		font-weight: 500;
		font-size: 22rpx;
		color: #999999;
		margin: 0 auto;
		padding-top: 20rpx;
	}
	.btn {
		left: 40rpx;
		bottom: 100rpx;
		position: fixed;
		width: 670rpx;
		
		border-radius: 44rpx 44rpx 44rpx 44rpx;
		height: 88rpx;
		.submit {
			width: 670rpx;
			border-radius: 44rpx 44rpx 44rpx 44rpx;
			height: 88rpx;
			background: #C7A46F;
			display: flex;
			align-items: center;
			justify-content: center;
			font-family: PingFang-SC, PingFang-SC;
			font-weight: bold;
			font-size: 36rpx;
			color: #FFFFFF;
		}
	}
	
</style>